<div class="page">
  <nz-spin [nzSpinning]="isSpinning">
    <div style="display: flex;padding: 10px;margin-bottom: 10px;justify-content: space-between;align-content: center">
      <div style="font-size: 20px">
        设备配置
      </div>
      <div>
        <button nz-button nzType="primary" (click)="handleOk()">保存</button>
      </div>
    </div>
    <div>
      <form nz-form [formGroup]="formModel">
        <nz-descriptions
          nzBordered
          [nzColumn]="{ xxl: 4, xl: 3, lg: 3, md: 3, sm: 2, xs: 1 }"
        >
          <nz-descriptions-item nzTitle="订单回调时间">
            <div style="padding-top: 10px">
              <nz-form-item>
                <nz-form-control nzErrorTip="请输入订单回调时间">
                  <nz-input-number formControlName="orderNoticeTime" [nzMin]="1" [nzMax]="100"
                                   [nzStep]="1"></nz-input-number>
                </nz-form-control>
              </nz-form-item>
            </div>
          </nz-descriptions-item>
          <nz-descriptions-item nzTitle="线上投币没回复时间（秒）">
            <div style="padding-top: 10px">
              <nz-form-item>
                <nz-form-control nzErrorTip="请输入线上投币没回复时间">
                  <nz-input-number formControlName="onLineInsertCoinNotNoticeTime" [nzMin]="1" [nzMax]="100"
                                   [nzStep]="1"></nz-input-number>
                </nz-form-control>
              </nz-form-item>
            </div>
          </nz-descriptions-item>
          <nz-descriptions-item nzTitle="线上投币失败重试总次数">
            <div style="padding-top: 10px">
              <nz-form-item>
                <nz-form-control nzErrorTip="请输入线上投币失败重试总次数">
                  <nz-input-number formControlName="onLineInsertCoinFailRetrySum" [nzMin]="1" [nzMax]="10"
                                   [nzStep]="1"></nz-input-number>
                </nz-form-control>
              </nz-form-item>
            </div>
          </nz-descriptions-item>
          <nz-descriptions-item nzTitle="场地默认营业开始时间">
            <div style="padding-top: 10px">
              <nz-form-item>
                <nz-form-control nzErrorTip="请输入场地默认营业开始时间">
                  <nz-time-picker formControlName="businessStartTime"></nz-time-picker>
                </nz-form-control>
              </nz-form-item>
            </div>
          </nz-descriptions-item>
          <nz-descriptions-item nzTitle="场地默认营业结束时间">
            <div style="padding-top: 10px">
              <nz-form-item>
                <nz-form-control nzErrorTip="请输入场地默认营业结束时间">
                  <nz-time-picker formControlName="businessEndTime"></nz-time-picker>
                </nz-form-control>
              </nz-form-item>
            </div>
          </nz-descriptions-item>
          <nz-descriptions-item nzTitle="调试投币次数">
            <div style="padding-top: 10px">
              <nz-form-item>
                <nz-form-control nzErrorTip="请输入调试投币次数">
                  <nz-input-number formControlName="debugConsumeSum" [nzMin]="1" [nzMax]="100"
                                   [nzStep]="1"></nz-input-number>
                </nz-form-control>
              </nz-form-item>
            </div>
          </nz-descriptions-item>
          <nz-descriptions-item nzTitle="每天单台设备最多解绑次数">
            <div style="padding-top: 10px">
              <nz-form-item>
                <nz-form-control nzErrorTip="请输入新设备数量">
                  <nz-input-number formControlName="unbindSum" [nzMin]="1" [nzMax]="10"
                                   [nzStep]="1"></nz-input-number>
                </nz-form-control>
              </nz-form-item>
            </div>
          </nz-descriptions-item>
          <nz-descriptions-item nzTitle="请输入外部设备线上投币记录时间">
            <div style="padding-top: 10px">
              <nz-form-item>
                <nz-form-control nzErrorTip="请输入外部设备线上投币记录时间">
                  <nz-input-number formControlName="externalDeviceOnLineInsertCoinRecord" [nzMin]="1" [nzMax]="60"
                                   [nzStep]="1"></nz-input-number>
                </nz-form-control>
              </nz-form-item>
            </div>
          </nz-descriptions-item>
          <nz-descriptions-item nzTitle="请输入外部设备线下投币记录时间">
            <div style="padding-top: 10px">
              <nz-form-item>
                <nz-form-control nzErrorTip="请输入外部设备线下投币记录时间">
                  <nz-input-number formControlName="externalDeviceOffLineInsertCoinRecord" [nzMin]="1" [nzMax]="60"
                                   [nzStep]="1"></nz-input-number>
                </nz-form-control>
              </nz-form-item>
            </div>
          </nz-descriptions-item>
          <nz-descriptions-item nzTitle="是否开启退款">
            <div style="padding-top: 10px">
              <nz-form-item>
                <nz-form-control nzErrorTip="请输入新设备数量" style="padding-left: 10px">
                  <nz-switch nzCheckedChildren="开" nzUnCheckedChildren="关" formControlName="refund"></nz-switch>
                </nz-form-control>
              </nz-form-item>
            </div>
          </nz-descriptions-item>
          <nz-descriptions-item nzTitle="购币套餐比例">
            <div style="padding-top: 10px">
              <nz-form-item>
                <nz-form-control nzErrorTip="请输入购币套餐比例">
                  <nz-input-number formControlName="salesPackageRatio" [nzMin]="0.1" [nzMax]="10"
                                   [nzStep]="0.1"></nz-input-number>
                </nz-form-control>
              </nz-form-item>
            </div>
          </nz-descriptions-item>
          <nz-descriptions-item nzTitle="购币套餐最大价格">
            <div style="padding-top: 10px">
              <nz-form-item>
                <nz-form-control nzErrorTip="请输入购币套餐最大价格">
                  <nz-input-number formControlName="salePackageMaximumPrice" [nzMin]="1" [nzMax]="10000"
                                   [nzStep]="1"></nz-input-number>
                </nz-form-control>
              </nz-form-item>
            </div>
          </nz-descriptions-item>
          <nz-descriptions-item nzTitle="是否开启网卡充值功能">
            <div style="padding-top: 10px">
              <nz-form-item>
                <nz-form-control nzErrorTip="请输入新设备数量" style="padding-left: 10px">
                  <nz-switch nzCheckedChildren="开" nzUnCheckedChildren="关" formControlName="netCardIsOpen"></nz-switch>
                </nz-form-control>
              </nz-form-item>
            </div>
          </nz-descriptions-item>
          <nz-descriptions-item nzTitle="设备活动返佣条件">
            <div style="padding-top: 10px">
              <nz-form-item>
                <nz-input-number formControlName="rebateCondition" [nzMin]="0" [nzMax]="900000"
                                 [nzStep]="1"></nz-input-number>
              </nz-form-item>
            </div>
          </nz-descriptions-item>
          <nz-descriptions-item nzTitle="返佣金额">
          <div style="padding-top: 10px">
            <nz-form-item>
              <nz-input-number formControlName="rebateMoney" [nzMin]="0" [nzMax]="200"
                               [nzStep]="1"></nz-input-number>
            </nz-form-item>
          </div>
        </nz-descriptions-item>

          <nz-descriptions-item>

          </nz-descriptions-item>
        </nz-descriptions>
      </form>
    </div>
  </nz-spin>
</div>
